namespace Billing.DataObjects
{
    using System;
    using System.Text;

    public partial class BillingDataContext
    { 
    
    }
    
    public partial class ItemGroup : IBaseObject
    {
        #region IBaseObject Members

        public string Key
        {
            get
            {
                return this.Name;
            }
            set
            {
                throw new System.NotImplementedException();
            }
        }

        public object Value
        {
            get
            {
                return this.ID;
            }
            set
            {
                throw new System.NotImplementedException();
            }
        }

        public object CurrentObject
        {
            get { return this; }
        }

        #endregion
    }
    public partial class ItemType : IBaseObject
    {
        #region IBaseObject Members

        public string Key
        {
            get
            {
                throw new System.NotImplementedException();
            }
            set
            {
                throw new System.NotImplementedException();
            }
        }

        public object Value
        {
            get
            {
                throw new System.NotImplementedException();
            }
            set
            {
                throw new System.NotImplementedException();
            }
        }

        public object CurrentObject
        {
            get { return this; }
        }

        #endregion
    }
    public partial class PaymentPointType : IBaseObject
    {
        #region IBaseObject Members

        public string Key
        {
            get
            {
                return this._Name;
            }
            set
            {
                this._Name = value;
            }
        }

        public object Value
        {
            get
            {
                return this._ID;
            }
            set
            {
                this._ID = Convert.ToInt16(value);
            }
        }

        public object CurrentObject
        {
            get { return this; }
        }

        #endregion
    }
    public partial class PaymentPoint
    {
        public override string ToString()
        {
            return this.Name;
        }
    }
    public partial class PaymentPointStatuse : IBaseObject
    {
        #region IBaseObject Members

        public string Key
        {
            get
            {
                throw new System.NotImplementedException();
            }
            set
            {
                throw new System.NotImplementedException();
            }
        }

        public object Value
        {
            get
            {
                throw new System.NotImplementedException();
            }
            set
            {
                throw new System.NotImplementedException();
            }
        }

        public object CurrentObject
        {
            get { return this; }
        }

        #endregion
    }
    public partial class TaxStatuse : IBaseObject
    {
        #region IBaseObject Members

        public string Key
        {
            get
            {
                throw new System.NotImplementedException();
            }
            set
            {
                throw new System.NotImplementedException();
            }
        }

        public object Value
        {
            get
            {
                throw new System.NotImplementedException();
            }
            set
            {
                throw new System.NotImplementedException();
            }
        }

        public object CurrentObject
        {
            get { return this; }
        }

        #endregion
    }
    public partial class ItemsSelectResult : IBaseObject
    {

        #region IBaseObject Members

        string IBaseObject.Key
        {
            get
            {
                throw new NotImplementedException();
            }
            set
            {
                throw new NotImplementedException();
            }
        }

        string IBaseObject.Name
        {
            get
            {
                throw new NotImplementedException();
            }
            set
            {
                throw new NotImplementedException();
            }
        }

        object IBaseObject.Value
        {
            get
            {
                return this.ID;
            }
            set
            {
                throw new NotImplementedException();
            }
        }

        object IBaseObject.CurrentObject
        {
            get { return this; }
        }

        #endregion
    }
    public partial class AccountNumberProvider : IBaseObject
    {
        partial void OnValidate(System.Data.Linq.ChangeAction action)
        {
            if (action == System.Data.Linq.ChangeAction.Insert)
            {
                this._ModifiedDate = this._CreatedDate = DateTime.Now;
            }
        }
        public override string ToString()
        {
            return this._Name;
        }
        #region IBaseObject Members

        string IBaseObject.Key
        {
            get
            {
                throw new NotImplementedException();
            }
            set
            {
                throw new NotImplementedException();
            }
        }

        string IBaseObject.Name
        {
            get
            {
                throw new NotImplementedException();
            }
            set
            {
                throw new NotImplementedException();
            }
        }

        object IBaseObject.Value
        {
            get
            {
                return this.ID;
            }
            set
            {
                throw new NotImplementedException();
            }
        }

        object IBaseObject.CurrentObject
        {
            get { return this; }
        }

        #endregion
    }
    public partial class AccountNumberPrefix : IBaseObject
    {
        partial void OnValidate(System.Data.Linq.ChangeAction action)
        {
            if (action == System.Data.Linq.ChangeAction.Insert)
            {
                this._ModifiedDate = this._CreatedDate = DateTime.Now;
            }
        }
        public override string ToString()
        {
            return this.Prefix;
        }
        #region IBaseObject Members

        string IBaseObject.Key
        {
            get
            {
                throw new NotImplementedException();
            }
            set
            {
                throw new NotImplementedException();
            }
        }

        string IBaseObject.Name
        {
            get
            {
                throw new NotImplementedException();
            }
            set
            {
                throw new NotImplementedException();
            }
        }

        object IBaseObject.Value
        {
            get
            {
                return this.ID;
            }
            set
            {
                throw new NotImplementedException();
            }
        }

        object IBaseObject.CurrentObject
        {
            get { return this; }
        }

        #endregion
    }
    public partial class AccountNumberIndex : IBaseObject
    {
        partial void OnValidate(System.Data.Linq.ChangeAction action)
        {
            if (action == System.Data.Linq.ChangeAction.Insert)
            {
                this._ModifiedDate = this._CreatedDate = DateTime.Now;
            }
        }
        public override string ToString()
        {
            return this._AccountNumberProvider.Entity.Name;
        }
        #region IBaseObject Members

        string IBaseObject.Key
        {
            get
            {
                throw new NotImplementedException();
            }
            set
            {
                throw new NotImplementedException();
            }
        }

        string IBaseObject.Name
        {
            get
            {
                throw new NotImplementedException();
            }
            set
            {
                throw new NotImplementedException();
            }
        }

        object IBaseObject.Value
        {
            get
            {
                return this.ID;
            }
            set
            {
                throw new NotImplementedException();
            }
        }

        object IBaseObject.CurrentObject
        {
            get { return this; }
        }

        #endregion
    }
    public partial class AccountNumberPrefixGroup : IBaseObject
    {
        partial void OnValidate(System.Data.Linq.ChangeAction action)
        {
            if (action == System.Data.Linq.ChangeAction.Insert)
            {
                this._ModifiedDate = this._CreatedDate = DateTime.Now;
            }
        }
        public override string ToString()
        {
            return this._Name;
        }

        #region IBaseObject Members

        string IBaseObject.Key
        {
            get
            {
                throw new NotImplementedException();
            }
            set
            {
                throw new NotImplementedException();
            }
        }

        string IBaseObject.Name
        {
            get
            {
                throw new NotImplementedException();
            }
            set
            {
                throw new NotImplementedException();
            }
        }

        object IBaseObject.Value
        {
            get
            {
                return this.ID;
            }
            set
            {
                throw new NotImplementedException();
            }
        }

        object IBaseObject.CurrentObject
        {
            get { return this; }
        }

        #endregion
    }

    public partial class AccountNumberIndexPrefix
    {
        partial void OnValidate(System.Data.Linq.ChangeAction action)
        {
            if (action == System.Data.Linq.ChangeAction.Insert)
            {
                this._ModifiedDate = this._CreatedDate = DateTime.Now;
            }
        }
    }

    public partial class Item : IBaseObject
    {
        public override string ToString()
        {
            return this.Name;
        }

        #region IBaseObject Members

        public string Key
        {
            get
            {
                throw new NotImplementedException();
            }
            set
            {
                throw new NotImplementedException();
            }
        }

        public object Value
        {
            get
            {
                throw new NotImplementedException();
            }
            set
            {
                throw new NotImplementedException();
            }
        }

        public object CurrentObject
        {
            get { return this; }
        }

        #endregion
    }

    public partial class HeaderType
    {
        public override string ToString()
        {
            return this.Name;
        }
    }
    public partial class HeaderStatuse
    {
        public override string ToString()
        {
            return this.Name;
        }
    }
    public partial class Tax : IBaseObject
    {
        public override string ToString()
        {
            return this.Name;
        }
        #region IBaseObject Members

        string IBaseObject.Key
        {
            get
            {
                throw new NotImplementedException();
            }
            set
            {
                throw new NotImplementedException();
            }
        }

        string IBaseObject.Name
        {
            get
            {
                return this.Name;
            }
            set
            {
                throw new NotImplementedException();
            }
        }

        object IBaseObject.Value
        {
            get
            {
                return this.ID;
            }
            set
            {
                throw new NotImplementedException();
            }
        }

        object IBaseObject.CurrentObject
        {
            get { return this; }
        }

        #endregion
    }
    public partial class TaxStatuse
    {
        public override string ToString()
        {
            return this.Name;
        }


    }
    public partial class Account
    {
        public override string ToString()
        {
            return this.AccountNumber.Number;
        }
    }
    public partial class ClientType : IBaseObject
    {
        public override string ToString()
        {
            return this.Name;
        }

        #region IBaseObject Members

        public string Key
        {
            get
            {
                throw new NotImplementedException();
            }
            set
            {
                throw new NotImplementedException();
            }
        }

        public object Value
        {
            get
            {
                throw new NotImplementedException();
            }
            set
            {
                throw new NotImplementedException();
            }
        }

        public object CurrentObject
        {
            get { return this; }
        }

        #endregion
    }
    public partial class PaymentOrder : IBaseObject
    {
        #region IBaseObject Members

        public string Key
        {
            get
            {
                return this.IdentificationNumber;
            }
            set
            {
                throw new NotImplementedException();
            }
        }

        public string Name
        {
            get
            {
                return this.PaymentPoint.Name; ;
            }
            set
            {
                throw new NotImplementedException();
            }
        }

        public object Value
        {
            get
            {
                return this.ID;
            }
            set
            {
                throw new NotImplementedException();
            }
        }

        public object CurrentObject
        {
            get { return this; }
        }

        #endregion
    }

}
